<%--
    Document   : index
    Created on : 22/07/2010, 12:54:49
    Author     : atila
--%>
<%@include file="/common_pages/taglib.jsp" %>
<%@page import="org.madmac.servlet.form.Form"%>
<%@page import="org.madmac.servlet.action.Action"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- VERIFICA SE O USUÁRIO ESTÁ COM O COOKIE VÁLIDO, SENÃO O REDIRECIONA PARA A PÁGINA DE LOGIN -->
<%@ include file="/log/verify_login.jsp" %>
<%--<%@include file="/common_pages/taglib.jsp" %>--%>

<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Setores :: MAD MAC 1.0.1</title>
      <link rel="icon" href="/madmac/favicon.ico" type="image/x-icon" />
      <link rel="shortcut icon" href="/madmac/favicon.ico" type="image/x-icon" />
      <link rel="stylesheet" href="/madmac/menu_madmac_files/cbcscbmenu_madmac.css" type="text/css" />
      <link rel="stylesheet" href="/madmac/estilos/madmac_tables.css" type="text/css" />
		<link rel="stylesheet" href="/madmac/estilos/madmac_inputs.css" type="text/css" />
		<link rel="stylesheet" href="/madmac/estilos/madmac_others.css" type="text/css" />
      <link rel="stylesheet" href="/madmac/estilos/madmac_divs.css" type="text/css" />
      <script type="text/javascript" src="/madmac/madmacproject.js"></script>
      <script type="text/javascript" language="javascript" src="/madmac/paginacao/js/jquery.js"></script>
      <%
            if (request.getAttribute("action") != null) {
					if (Action.LIST_ALL.equals(request.getAttribute("action"))) {
			%>
		<!-- PAGINAÇÃO VIA AJAX -->
		<style type="text/css" title="currentStyle">
			@import "/madmac/paginacao/css/demo_page.css";
			@import "/madmac/paginacao/css/demo_table.css";
		</style>
		<script type="text/javascript" language="javascript" src="/madmac/paginacao/js/jquery.dataTables.js"></script>
		<script type="text/javascript" charset="utf-8">
			$(document).ready(function() {
				$('#example').dataTable( {
					"sPaginationType": "full_numbers",
               "aaSorting": [[1,'asc']]
				} );
			} );
		</script>
      <%
					}
            }
      %>
   </head>
   <body onload="document.getElementById('madsearch').focus()">
      <div class="logotype"><img src="/madmac/madmac-logo-1.0.1.png" height="120%" alt="MAD MAC"></div>

      <div class="menu_principal">
         <%@ include file="/common_pages/menu.jsp" %>
      </div>

      <div class="search_mac">
         <%@include file="/common_pages/search_mac.jsp" %>
      </div>

      <div class="corpo">
         <c:catch>
            <c:import url="${url}"></c:import>
         </c:catch>
         <%
            if (request.getParameter("form") != null) {
               if ( Form.ADD.equals(Form.valueOf(request.getParameter("form"))) ) {
                  %>
                  <c:import url="/setor/setorCreate.jsp"></c:import>
                  <%
               }
            }
			%>
      </div>
      <div class="footer_madmac">
         <%@include file="/common_pages/footer.jsp" %>
      </div>
   </body>
</html>